<?php
include_once BXD_INCLUDEPATH . 'lib/entity/EntityManager.php';
/**
 * Factory per ottenre l'entity manager
 *
 * @author Fabrizio Filieri
 */
class EntityManagerFactory
{
	private static $instance = null;

	/**
	 * @return EntityManager l'entity manager su cui operare
	 */
	public static function get()
	{
		// creazione istanza se non attiva
		if (self::$instance == null)
			self::$instance = new EntityManager();

		return self::$instance;
	}
}

?>
